<?php
        $baseUrl = "http://intranet.arapongas.pr.gov.br/grambel/";
	session_start();
		
?>

<div class="navbar navbar-inverse" style="float:left;">
	<ul class="nav nav-pills">
		<?php
			if($_SESSION["permissao"] > 0){
		
		?>
		<li><a href="<?php echo $baseUrl;?>">Home</a></li>
		<li class="dropdown">
			<a class="dropdown-toggle" data-toggle="dropdown" href="#">Contatos <b class="caret"></b></a>
			<ul class="dropdown-menu">
				<li><a href="<?php echo $baseUrl;?>c_contato/cad_contato.php">Adicionar</a></li>
				<li><a href="<?php echo $baseUrl;?>c_contato/e_contato.php">Editar/Excluir</a></li>

			</ul>
		</li>
		<li class="dropdown">
			<a class="dropdown-toggle" data-toggle="dropdown" href="#">Telefones <b class="caret"></b></a>
			<ul class="dropdown-menu">
				<li><a href="<?php echo $baseUrl;?>c_ramal/cad_ramal.php">Adicionar</a></li>
				<li><a href="<?php echo $baseUrl;?>c_ramal/e_ramal.php">Editar/Excluir</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo $baseUrl;?>c_ramal/lista_telefones.php" >Relat&oacute;rio Telefones</a></li>
				<li><a href="<?php echo $baseUrl;?>c_ramal/listaderamais_oculta.php" target="_blank">Relat&oacute;rio Telefones Ocultos</a></li>
				<!--<li><a href="lista_ramais_setor.php">Lista de Ramais por setor</a></li>-->
				<li><a href="<?php echo $baseUrl;?>c_ramal/lista_ramais_secretaria.php">Relat&oacute;rio Telefone por Locais</a></li>
			</ul>
		</li>
<!--		<li class="dropdown">
			<a class="dropdown-toggle" data-toggle="dropdown" href="#">Locais <b class="caret"></b></a>
			<ul class="dropdown-menu">
				<li><a href="<?php echo $baseUrl;?>c_local/cad_secretaria.php">Adicionar</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo $baseUrl;?>c_local/e_secretaria.php">Editar</a></li>
				
			</ul>
		</li>-->
		<li class="dropdown">
			<a class="dropdown-toggle" data-toggle="dropdown" href="#">Setores <b class="caret"></b></a>
			<ul class="dropdown-menu">
				<li><a href="<?php echo $baseUrl;?>c_setor/cad_setor.php">Adicionar</a></li>
				<li class="divider"></li>
				<li><a href="<?php echo $baseUrl;?>c_setor/e_setor.php">Editar</a></li>
			</ul>
		</li>
		 <?php
                	 if($_SESSION["permissao"] == 2){


                ?>
		 <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">Locais <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                                <li><a href="<?php echo $baseUrl;?>c_local/cad_secretaria.php">Adicionar</a></li>
                                <li class="divider"></li>
                                <li><a href="<?php echo $baseUrl;?>c_local/e_secretaria.php">Editar</a></li>

                        </ul>
                </li>

		<li class="dropdown">
			<a class="dropdown-toggle" data-toggle="dropdown" href="#">Administracao <b class="caret"></b></a>
			<ul class="dropdown-menu">
				<li><a href="<?php echo $baseUrl;?>modlogin/log.php">Log</a></li>
			</ul>
		</li>
		<?php
                        }

                ?>

		<li><a href="<?php echo $baseUrl;?>modlogin/sair.php">Logout <?php echo '('.$_SESSION['user'].')';?></a></li>
		<?php
			}else{
		
		?>
		<li><a href="<?php echo $baseUrl;?>modlogin/login.php">Login</a></li>
		<?php
			}
		
		?>
	</ul>
</div>
